import urllib.request as req

url = 'https://jsonplaceholder.typicode.com/todos/1'
local_file = 'todo.json'

req.urlretrieve(url, local_file)
